package edu.sctu.practice.class02.xuejiahua.java_dog;

/**
 * Created by Administrator on 2015/9/18.
 */
public class OtherDog extends Dog {
    public OtherDog(int age, String name,String color) {
        this.age = age;
        this.name = name;
        this.color = color;
    }
    public void other(){
        if (number==100011){
            printAge();
            printName();
            printColor();


        }else {
            printColor();
            printName();
            printAge();
            printSex();
            printNumber();

        }


    }
}
